/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-10-10 10:16:11
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-10-12 10:23:14
 * @FilePath: \ZHGD-Vue2\src\api\waterStability\designMatching.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 列表查询
export function cementMatchList(query) {
  return request({
    url: '/zhgd/cementMatch/page',
    method: 'get',
    params: query
  })
}

// 所属项目下拉
export function materielProjectSelect(query) {
  return request({
    url: '/zhgd/materielProject/selectList',
    method: 'get',
    params: query
  })
}

// 摊铺层级
export function getcodelistall(query) {
  // codeid  摊铺层级codeid=CEMENT_PAVING_LEVEL   集科1——6   codeid=WATER_MIXTRUE
  return request({
    url: '/zhgd/codeitem/getcodelistall',
    method: 'get',
    params: query
  })
}

// 详情列表查询
export function cementMatchInfo(query) {
  return request({
    url: '/zhgd/cementMatch/info',
    method: 'get',
    params: query
  })
}

// 新增部门
export function addCementMatch(data) {
  return request({
    url: '/zhgd/cementMatch/add',
    method: 'post',
    data: data
  })
}

// 修改
export function cementMatchEdit(data) {
  return request({
    url: '/zhgd/cementMatch/edit',
    method: 'put',
    data: data
  })
}

// // 删除
export function cementMatchRemove(ids) {
  return request({
    url: '/zhgd/cementMatch/' + ids,
    method: 'delete'
  })
}

// export function cementMatchRemove(ids) {
//   return request({
//     url: '/zhgd/cementMatch/remove',
//     method: 'delete',
//     data: ids
//   })
// }

// 列表
export function nCementMatchList(query) {
  return request({
    url: '/zhgd/nCementMatch/list',
    method: 'get',
    params: query
  })
}

// 详情
export function nCementMatchInfo(id) {
  return request({
    url: '/zhgd/nCementMatch/' + id,
    method: 'get'
  })
}

// 新增
export function addNCementMatch(data) {
  return request({
    url: '/zhgd/nCementMatch/',
    method: 'post',
    data: data
  })
}

// 修改
export function nCementMatchEdit(data) {
  return request({
    url: '/zhgd/nCementMatch/',
    method: 'put',
    data: data
  })
}

// // 删除
export function nCementMatchRemove(ids) {
  return request({
    url: '/zhgd/nCementMatch/' + ids,
    method: 'delete'
  })
}

// 获取该标段的数据启用信息
export function getEnabledInfo(id) {
  return request({
    url: '/zhgd/nCementMatch/getEnabledInfo/' + id,
    method: 'get'
  })
}

